home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / connec1r / form4.frm < prev    next >
Text File  |  1999-07-14  |  2KB  |  65 lines

  1. VERSION 5.00
  2. Begin VB.Form Form4 
  3.    BackColor       =   &H00000000&
  4.    Caption         =   "Form4"
  5.    ClientHeight    =   1320
  6.    ClientLeft      =   4365
  7.    ClientTop       =   4395
  8.    ClientWidth     =   4560
  9.    LinkTopic       =   "Form4"
  10.    ScaleHeight     =   1320
  11.    ScaleWidth      =   4560
  12.    Begin VB.CommandButton Command1 
  13.       Caption         =   "Click Here"
  14.       Height          =   375
  15.       Left            =   1560
  16.       TabIndex        =   2
  17.       Top             =   840
  18.       Width           =   1575
  19.    End
  20.    Begin VB.TextBox Text1 
  21.       Height          =   375
  22.       IMEMode         =   3  'DISABLE
  23.       Left            =   1080
  24.       PasswordChar    =   "*"
  25.       TabIndex        =   1
  26.       Top             =   360
  27.       Width           =   2535
  28.    End
  29.    Begin VB.Label Label1 
  30.       BackColor       =   &H00000000&
  31.       Caption         =   "Fill In The Password"
  32.       BeginProperty Font 
  33.          Name            =   "MS Sans Serif"
  34.          Size            =   13.5
  35.          Charset         =   0
  36.          Weight          =   400
  37.          Underline       =   0   'False
  38.          Italic          =   0   'False
  39.          Strikethrough   =   0   'False
  40.       EndProperty
  41.       ForeColor       =   &H00FFFFFF&
  42.       Height          =   375
  43.       Left            =   1080
  44.       TabIndex        =   0
  45.       Top             =   0
  46.       Width           =   2655
  47.    End
  48. End
  49. Attribute VB_Name = "Form4"
  50. Attribute VB_GlobalNameSpace = False
  51. Attribute VB_Creatable = False
  52. Attribute VB_PredeclaredId = True
  53. Attribute VB_Exposed = False
  54. Private Sub Command1_Click()
  55. If Text1.Text = "x" Then
  56. MsgBox "Great - password accepted!", 6, "Good Job"
  57. Unload Form4
  58. Form5.Show
  59. Else
  60. MsgBox "Sorry, that's wrong, try again!", 6, "Try Again"
  61. Text1.SetFocus
  62. Text1.Text = ""
  63. End If
  64. End Sub
  65.